<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\8 0008
  Time: 19:22
  To change this ttasklate use File | Settings | File Ttasklates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/taskExecute.js"></script>
</head>
<body>
<%--此处必须设计为双标签,否则不能作为容器储存数据--%>
<table id="task_grid"></table>
<div id="tb">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="opendialog()">新增任务</a>
    <a href="#" id="editbtn" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">编辑任务</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo'" onclick="exportXls()">导出任务</a>
    <a href="#" id="statebtn" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="stateojbk()">标记完成</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload'" onclick="reload()">刷新任务</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="tdelete()">删除任务</a>
    <input class="easyui-textbox" name="keyword" prompt="请输入姓名">
    <input class="easyui-combobox" name="deptId" prompt="请选择部门" data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/department/getAll.do'">
    开始时间
    <input class="easyui-datetimebox" name="startTime"
           data-options="showSeconds:false" style="width:150px">
    结束时间
    <input class="easyui-datetimebox" name="finalTime"
           data-options="showSeconds:false" style="width:150px">
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">搜索</a>
</div>
<div id="form_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>
</div>
<div id="task_dialog">
    <%--切记提交表单的方式--%>
    <form id="task_form" method="post" data-url="/taskExecute/saveOrUpdate.do">
        <input type="hidden" id="tid" name="tid"/>
        <table align="center" style="margin-top: 15px">
            <tr id="userid">
                <td>员工姓名:</td>
                <td>
                    <input name="employeeId" class="easyui-combobox"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',
                        url:'/employee/selectAll.do'">
                </td>
            </tr>
            <tr id="taskid">
                <td>任务编号:&nbsp;</td>
                <td>
                    <input name="taskno" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>任务时间:&nbsp; </td>
                <td>
                    <input name="date" class="easyui-datebox">
                </td>
            </tr>
            <tr>
                <td>任务地点:&nbsp; </td>
                <td>
                    <input name="site" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>任务内容:&nbsp; </td>
                <td>
                    <input name="taskword" class="easyui-textbox" data-options="height:180,multiline:true">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
